import request from "@/utils/request.js";

// configType=1 获取配置列表
export const getConfigList = (params) => {
	return request({
		url: '/config/list',
		method: 'get',
		params
	})
}

export const teamClassify = () => {
	return request({
		url: '/dict/data/type/website_team_post',
		method: 'get',
	})
}

export const getTeamList = () => {
	return request({
		url: '/team/list',
		method: 'get',
	})
}

export const getTopList = () => {
	return request({
		url: '/project/listTop',
		method: 'get',
	})
}

export const getProjectDetail = (projectId) => {
	return request({
		url: `/project/${projectId}`,
		method: 'get'
	})
}

// flagType=areaFlag
export const getListGroup = (params) => {
	return request({
		url: `/project/listGroup`,
		method: 'get',
		params
	})
}

export const getRouters = () => {
	return request({
		url: `/nav/getRouters`,
		method: 'get'
	})
}